package com.kgc.chapter01.vars

object TypeData {
  def main(args: Array[String]): Unit = {
    // println(sayHello)

    /*var num =1.2
    var num2 =1.300f
    println(num2)
    num2 = num.toFloat
    println(num2)*/

    tryit(null)
  }

  def tryit(thing : Null): Unit ={
    println("That worked")
  }

  /*def sayHello : Nothing = {
    throw  new Exception ("抛出异常")
  }*/
}
